package com.bls.productmall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bls.productmall.entity.Order;
import com.bls.productmall.enums.OrderStatus;
import com.bls.productmall.vo.R;

import java.io.IOException;
import java.io.OutputStream;

public interface OrderService extends IService<Order> {

    R getOrderPage(int current, int size);

    R getOrderByUserName(String userName, int current, int size);

    int deleteOrderByOrderId(int orderId);

    Order getOrderByOrderNo(String orderNo);

    void updateStatusByOrderNo(String orderNo, OrderStatus orderStatus);

    String getOrderStatus(String orderNo);

    void exportExcel(OutputStream out, String excelTitle) throws IOException;
}
